#ifndef SCRIPTEDITDIALOG_H
#define SCRIPTEDITDIALOG_H

#include <QDialog>
#include <QTextDocument>
#include <QPlainTextDocumentLayout>

namespace Ui {
    class ScriptEditDialog;
}

class ScriptEditDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ScriptEditDialog(QString text, QWidget *parent = 0);
    ~ScriptEditDialog();

signals:
    void scriptUpdate(QString text);

private slots:
    void on_savePushButton_clicked();

    void on_clearPushButton_clicked();

private:
    Ui::ScriptEditDialog *ui;
    QTextDocument *doc;
    QPlainTextDocumentLayout *docLayout;
};

#endif // SCRIPTEDITDIALOG_H
